package com.suixun.service.redis;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.suixun.dao.redis.RedisDao;

@Service("redisService")
public class RedisService<T> {

    @Resource(name = "redisDao")
	private RedisDao redisDao;

	public T get(String key) {
		return (T) redisDao.get(key);
	}

	public void put(Object key, T value){
	    redisDao.put(key, value);
	}
}
